
import moment from 'moment';
import 'moment/dist/locale/zh-cn';
moment.locale('zh-cn');

export const getNowTime =()=>{
   return moment().format('YYYY-MM-DD HH:mm:ss')
}

export const formatTime=(val:number)=>{
   return moment(val).format('YYYY-MM-DD HH:mm:ss')
}